{{define "Title"}}Query Result{{end}}
{{define "Content"}}

<fieldset>
  <legend><b>Query Result</b></legend>
</fieldset>

<script type=text/javascript src="/js/tablestyle.js"></script>

{{if .ssns.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>Product No.</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/queryssn?q={{.ssns.Data | html}}">{{.ssns.Data | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{if .custlinked.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>Customer ID</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/queryssn?q={{.custlinked.Data | html}}">{{.custid | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{if .wos.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>WorkOrder</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/querywo?q={{.wos.Data | html}}">{{.wos.Data | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{if .items.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>Item</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/queryitem?q={{.items.Data | html}}">{{.items.Data | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{if .boxs.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>Box ID</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/querybox?q={{.boxs.Data | html}}">{{.boxs.Data | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{if .pos.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>Purchase Order</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/querypo?q={{.pos.Data | html}}">{{.pos.Data | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{if .routs.Data}}
<div class="content-box">
  <div class="content-box-header">
    <p style="font-size: 16px;">&nbsp;&nbsp;<b>Routing</b></p>
  </div>
<table id="tbl_ls" border="1" cellspacing="0" cellpadding="0">
  <tbody id="group_one">
  <tr>
    <td id="detail_ssn" fieldset style="color: #666666; border-style: groove; font-weight: bold; font-size: 14px"><a href="/routing?q={{.routs.Data | html}}">{{.routs.Data | html}}</a></td>
  </tr>
  </tbody>
</table>
</div>
{{end}}

{{end}}